package com.fileCenter.service.domain;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class Result implements Serializable {

	private static final long serialVersionUID = -6887748100643561607L;
	
	private boolean success = true;
	private int errorCode;
	private String msg;
	
	private Map<String, Object> items = new HashMap<String, Object>();
	
	public Result() {
	}
	
	public Result(boolean success, int errorCode, String msg) {
		this.success = success;
		this.errorCode = errorCode;
		this.msg = msg;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public void put(String key, Object item) {
		items.put(key, item);
	}
	
	public Object get(String key) {
		return items.get(key);
	}

}
